/*
 * @Description: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2021-09-17 16:53:48
 * @LastEditors: ziwei
 * @LastEditTime: 2021-09-17 16:56:58
 */
let crypto = require('crypto');
let content = '123456'
let md5Hash = crypto.createHash('md5').update(content).update(content).digest('hex');
console.log("md5Hash",md5Hash,md5Hash.length);
let salt = "123456";
let sh1Hash = crypto.createHmac('sha256',salt).update(content).update(content).digest('hex')
console.log("sh1Hash",sh1Hash,sh1Hash.length);